package com.fyl.pattern.factory.static_factory;


/**
 * 咖啡商店
 */
public class CoffeeStore {

    public Coffee orderCoffee(String type){
//        SimpleCoffeeFactory factory = new SimpleCoffeeFactory();
//        Coffee coffee = factory.CreateCoffee(type);
        Coffee coffee = SimpleCoffeeFactory.CreateCoffee(type);
        return coffee;
    }
}
